import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
/**
 * This program displays a greeting from the authors.
 * 
 * @version 1.20 2004-02-28
 * @author Cay Horstmann
 */
public class kk {

	   public static void main(String[] args) throws FileNotFoundException
	   {
		 
		   
	       Scanner in = new Scanner(new File("c.txt"));
	       
	               int n =1;
                   int oneInt =0;
	               int twoInt =0;
                   int threeInt =0;
                   
                   while( in.hasNext()  )
                   {
		    	   String line = in.nextLine();
		    	   char one = line.charAt(0);
		    	   char two = line.charAt(2);
                   char three = line.charAt(4);
                   
                   System.out.println("one: " +one);
		    	   System.out.println("two: " +two);
                   System.out.println("three: " +three);
                   
                   oneInt = oneInt + Integer.parseInt(one+ "");
		    	   twoInt = twoInt + Integer.parseInt(two+ "");
		    	   threeInt = threeInt + Integer.parseInt(three+ "");
		    	   n++;
                   }
                   System.out.println(oneInt);    System.out.println(oneInt/n);  
		           System.out.println(twoInt);   
		           System.out.println(threeInt); 
		           System.out.println(n);
			       
       }
	   }
